home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.3 Development Libraries / SGI IRIX 6.3 Development Libraries.iso / dist / dist6.3 / ViewKit_dev.idb / usr / include / Vk / VkWindow.h.z / VkWindow.h
C/C++ Source or Header  |  1996-09-20  |  2KB  |  67 lines

  1. ////////////////////////////////////////////////////////////////////////////////
  2. ///////   Copyright 1992, Silicon Graphics, Inc.  All Rights Reserved.   ///////
  3. //                                                                            //
  4. // This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;     //
  5. // the contents of this file may not be disclosed to third parties, copied    //
  6. // or duplicated in any form, in whole or in part, without the prior written  //
  7. // permission of Silicon Graphics, Inc.                                       //
  8. //                                                                            //
  9. // RESTRICTED RIGHTS LEGEND:                                                  //
  10. // Use,duplication or disclosure by the Government is subject to restrictions //
  11. // as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data     //
  12. // and Computer Software clause at DFARS 252.227-7013, and/or in similar or   //
  13. // successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -    //
  14. // rights reserved under the Copyright Laws of the United States.             //
  15. //                                                                            //
  16. ////////////////////////////////////////////////////////////////////////////////
  17.  
  18. #ifndef VKWINDOW_H
  19. #define VKWINDOW_H
  20.  
  21. // VkWindow.h - declarations for a Motif toplevel window object that supports a menu
  22.  
  23. class VkApp;
  24. class VkSubMenu;
  25. class VkRadioSubMenu;
  26. class VkMenuBar;
  27. struct VkMenuDesc;
  28.  
  29. #include <Vk/VkSimpleWindow.h>
  30.  
  31. // VkWindow class
  32.  
  33. class VkWindow : public VkSimpleWindow {
  34.  
  35.   public:
  36.  
  37.     VkWindow(const char *name, ArgList argList = NULL, Cardinal argCount = NULL);    
  38.     virtual ~VkWindow();
  39.  
  40.     virtual void show();    
  41.  
  42.     void    setMenuBar(VkMenuBar *menuObj);
  43.     void    setMenuBar(VkMenuDesc *menuDesc);
  44.     void    setMenuBar(VkMenuDesc *menuDesc, XtPointer clientData);
  45.  
  46.     VkSubMenu *addMenuPane(const char *);
  47.     VkSubMenu *addMenuPane(const char *, VkMenuDesc *);
  48.  
  49.     VkRadioSubMenu *addRadioMenuPane(const char *);
  50.     VkRadioSubMenu *addRadioMenuPane(const char *, VkMenuDesc *);
  51.  
  52.     virtual VkMenuBar *menu() const;
  53.     virtual const char* className();
  54.  
  55.     static VkMenuBar *getMenu(VkComponent *);
  56.     static VkWindow *getWindow(VkComponent *);    
  57.  
  58.   protected:
  59.  
  60.     virtual Widget setUpInterface(Widget );
  61.     
  62.   private:
  63.  
  64.     VkMenuBar *_menu;
  65. }; 
  66. #endif
  67.